package com.stone.db.jdbc.mapper;

import com.stone.db.jdbc.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>Created with IntelliJ IDEA. </p>
 * <p>User: Stony </p>
 * <p>Date: 2016/6/27 </p>
 * <p>Time: 14:50 </p>
 * <p>Version: 1.0 </p>
 */
public interface OrderMapper {

    Order selectById(@Param("orderId") int orderId);

    List<Order> selectAll();

    int insert(Order order);

    int update(Order order);

    int delete(int orderId);


    List<Order> queryOrderById(@Param("orderId") int orderId);
}
